package com.powernode.business.service;

import com.powernode.business.domain.Rent;
import com.powernode.common.core.domain.model.LoginUser;

import java.util.List;

public interface RentService{


    int deleteByPrimaryKey(Integer id);

    int insert(Rent record);

    int insertSelective(Rent record);

    Rent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rent record);

    int updateByPrimaryKey(Rent record);

    /**
     * 租车
     * @param rent
     * @return
     */
    int realDoRent(Rent rent);

    /**
     * 出租单分页查询
     * @param rent
     * @param loginUser
     * @return
     */
    List<Rent> selectRent(Rent rent, LoginUser loginUser);

    int deleteRent(List<Integer> id, LoginUser loginUser);
}
